package cn.wolfcode.wolf2w.service;


import cn.wolfcode.wolf2w.domain.Strategy;
import cn.wolfcode.wolf2w.domain.StrategyCatalog;
import cn.wolfcode.wolf2w.query.StrategyCatalogQuery;
import cn.wolfcode.wolf2w.vo.CatalogVO;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 *
 */
public interface IStrategyCatalogService {


    StrategyCatalog get(String id);

    List<StrategyCatalog> selectAll();

    Page<StrategyCatalog> query(StrategyCatalogQuery qo);

    void update(StrategyCatalog strategyCatalog);

    void save(StrategyCatalog strategyCatalog);

    void deleteById(String id);

    List<CatalogVO> groupList();

    /**
     * 给攻略对象添加分类名
     * @param strategy
     */
    void addCatalog(Strategy strategy);

    /**
     * 根据目的地id查询目的地下所有攻略分类及分类下的攻略
     * @param destId
     * @return
     */
    List<StrategyCatalog> selectCatalogsAndStraById(String destId);
}
